#include <iostream>
#include <map>
#include <string>
#include"Keyboard.h"


using namespace std;
using namespace Green;

Keyboard::Keyboard()
{
	input = 0;
	terminate = false;

}

Keyboard::~ Keyboard()
{

}

void Keyboard::setKeyboardInput()
{
	do
	{
		cout << "Press 1 pizza to cook a slice of pizza."  << endl;
		cout << "Press 2 defrost to defrost food." << endl;
		cout << "Press 3 poptart to cook a poptart." << endl;
		cout << "Press 4 popcorn to cook popcorn" << endl;
		cin >> input;

		if (input > 5)
		{
			cout << "Sorry not an option" << endl;
		}

		if(input == 0)
		{
			terminate = true;
		}

	}while ( !terminate );

}

int Keyboard::getKeyboardInput() const
{
	return input;
}
